package cn.newshasha.hlx.service;

import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author bSu
 * @date 2020/11/28 - 18:40
 */
@Service
public interface ToolsService {

    /**
     * 通过帖子id和地址，获取所有图片
     * @param postId
     * @param postAdds
     * @param floor
     * @return
     */
    public Map<String,Object> getAllImages(String postId, String postAdds ,int floor);

    /**
     * 通过帖子id去获取楼主用户id或指定楼层的id
     * @param postid
     * @param floor
     * @return
     */
    public Object getPostByAdds(long postid,int floor) throws IOException;

    /**
     * 获取板块当日帖子热度排名
     * @param catId 板块id
     * @return
     */
    public Object getRanking(String catId) throws IOException;
}
